Skip to content

Add parameter name reflection - #99

Open
tipsy wants to merge 1 commit into
masterfrom
param-name-reflection
Open

tipsy wants to merge 1 commit into
masterfrom
param-name-reflection

Conversation

@tipsy

@tipsy tipsy commented Jan 8, 2018 •

Copy link
Copy Markdown
Owner

Allows for writing attribute-names as lambda-params:

link().withAttrs(rel-> "stylesheet", href -> "/styles.css");
form().withAttrs(method -> "post", action -> "/form-path").with(
    input().withAttrs(name -> "email", type -> "email"),
    input().withAttrs(name -> "password", type -> "password")
);

@tipsy
tipsy force-pushed the param-name-reflection branch from 1789ba0 to 92aa331 Compare January 10, 2018 16:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant